<?php

namespace console\controllers;

use Yii;
use common\models\shop\ShopOrder;
use common\logics\CommissionLogic;

/**
 * Manages application migrations.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class TestController extends \yii\console\Controller {

    /**
     * @view update.php
     * @return mixed
     */
    public function actionIndex() {
        echo 'test';
//        $order = ShopOrder::findOne($id);
//        if ($order && $order->status == ShopOrder::STATUS_RECEIVED) {
//            //计算返佣
//            CommissionLogic::rakeBack($order->id);
//        }
    }

}
